
package layoutVariety
{
	class Slider (ref:Int) extends Widget(ref)
	{
		private var sl = new scala.swing.Slider
		
		jc = sl
		
		//adding proper functionality
		namesToFuncs("minvalue") = setMin
		namesToFuncs("maxvalue") = setMax	
		namesToFuncs("value") = setVal
	
		def getMax:Int = sl.max
		def getMin:Int = sl.min
		
		def setMax(ref:AnyRef) 
		{
			var v = ref.asInstanceOf[Int]
			sl.max = v
		}
		
		def setMin(ref:AnyRef) 
		{
			var v = ref.asInstanceOf[Int]
			sl.min = v
		}
		
		def getVal:Int = sl.value
		
		def setVal(ref:AnyRef) 
		{
			var v = ref.asInstanceOf[Int]
			sl.value = v
		}		
	}
}